package cn.hua.trip.base.domain;

import lombok.*;

@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class User extends BaseDomain{
    public static final int  GENDER_MAN=1;  //男
    public static final int  GENDER_WOMEN=0;   //女
    public static final int  GENDER_UNKNOW=-1;  //未知


    private String email;

    private String nickName;

    private String password;

    private String place;

    private String headImgUrl;

    private Integer gender =GENDER_UNKNOW;

    private String coverImgUrl;

    private String sign;

    public String getGenderName(){
        String  temp = "未知";
        if(gender==GENDER_MAN){
            temp="男";
        }else{
            temp="女";
        }
        return temp;
    }


}